@layer base {
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: normal;
  }

  body {
    --proview-3d-left: 16.5vw;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #0e0f0f;
    // background: var(--color-background);
    transition:
      color 0.5s,
      background-color 0.5s;
    line-height: 1.6;
    font-family:
      Inter,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      Roboto,
      Oxygen,
      Ubuntu,
      Cantarell,
      'Fira Sans',
      'Droid Sans',
      'Helvetica Neue',
      sans-serif;
    font-size: 15px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #app {
    width: 100%;
    height: 100%;
  }

  .flex-unset {
    flex: unset !important;
  }

  .module-title {
    font-size: 14px;
    font-weight: bold;
    margin-left: 12px;
    margin-bottom: 20px;
    position: relative;

    &::after {
      content: ' ';
      position: absolute;
      left: -10px;
      top: 50%;
      transform: translateY(-50%);
      display: block;
      width: 3px;
      height: 16px;
      background: rgb(56, 131, 250);
    }
  }

  .view_modal {
    .ant-modal-close {
      background: #236097 !important;
    }

    .modal_header {
      width: 100%;
      height: 80px;
      background: url('/static/modal_header.png') no-repeat;
      background-size: 100% 100%;
      text-align: center;

      .modal_title {
        font-size: 30px;
        line-height: 60px;
        font-weight: 700;
        font-family: Alimama ShuHeiTi;
        background: linear-gradient(180deg, #ffffff 26%, #46a8e6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
      }
    }

    .modal_container {
      max-height: calc(100% - 80px);
      padding: 15px 40px;
    }

    .ant-checkbox-group {
      background: linear-gradient(
        180deg,
        rgba(55, 117, 198, 0) 0%,
        rgba(55, 117, 198, 0.4) 100%
      );
    }

    &.trigger_form {
      .ant-modal-content {
        background-image: url('/static/health/login-bg.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
      }
    }

    .ant-modal {
      width: 100vw !important;
      height: 100vh !important;
      margin: 0;
      top: 0 !important;
      left: 0 !important;
      max-width: 100vw !important;

      .ant-modal-content {
        width: 100vw;
        height: 100vh;
        // padding: 15px !important;

        .ant-modal-body {
          width: 100%;
          height: 100%;
          max-height: 100vh !important;
          padding: 0 !important;
          // padding-top: 25px;
        }
      }
    }
  }

  .custom_header {
    background: transparent;
    display: flex;
    align-items: center;
    padding: 10px;

    & > div {
      width: 200px;
      display: flex;
      position: relative;
      justify-content: space-between;
      padding: 0 20px;

      &:last-child {
        &::after {
          display: none;
        }
      }

      &::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 2px;
        height: 12px;
        background-color: #555;
      }
    }
  }

  input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #04172d inset !important;
    -webkit-text-fill-color: #fff !important;
    /* 设置文字颜色 */
  }

  .station_label {
    padding-left: 10px;
    position: relative;

    &::before {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      content: '';
      width: 3px;
      height: 10px;
      background-color: #40deff;
    }
  }

  .sse-wrap {
    .ant-steps {
      width: max-content !important;

      .ant-steps-item {
        width: max-content !important;
        padding-right: 40px !important;
        flex: unset !important;
      }

      .ant-steps-item-container {
        width: max-content !important;
      }

      .ant-steps-item-description {
        font-size: 12px !important;
      }
    }
  }

  .custom_card {
    width: 300px;
    box-shadow: -1px 1px 10px -1px #ccc inset !important;
    margin: 4px 20px 4px 10px !important;
    border-radius: 4px !important;

    &.ant-card:not(.ant-card-bordered) {
      box-shadow: -1px 1px 10px -1px #ccc inset !important;
    }
  }
}

.full-modal {
  .ant-modal {
    max-width: 100%;
    top: 0;
    padding-bottom: 0;
    margin: 0;

    .ant-modal-content {
      display: flex;
      flex-direction: column;
      height: calc(100vh);
      padding-bottom: 0 !important;
    }

    .ant-modal-body {
      flex: 1;
      padding: 0 !important;
      margin: 0 !important;
      max-height: 100vh !important;
      max-width: 100vw !important;
    }
  }
}

.zoom-in-center-enter-active,
.zoom-in-center-leave-active {
  transition: all 0.3 cubic-bezier(0.55, 0, 0.1, 1);
}

.zoom-in-center-enter-from,
.zoom-in-center-leave-active {
  opacity: 0;
  transform: scaleX(0);
}

.left_tree_detection {
  width: 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);

  .module-title {
    margin: 20px;
  }
}

.jv-key {
  color: #fff !important;
}

.ant-btn > span {
  display: inline-flex;
}

.ant-menu-horizontal .ant-menu-item {
  padding-inline: 25px;
}

.ant-tag {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.2);
}

.ant-switch.ant-switch-checked {
  background: #389ffa;
}

.generate_error_msg {
  min-height: 20vh;
}

.is_empty {
  width: 100%;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
